package com.cdxy.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: tangy
 * @Date: 2020/4/7 17:35
 */

public class OrderEnum {

    @AllArgsConstructor
    @Getter
    public enum OrderStatus {
        /**
         * 支付状态
         */
        PAYING("支付中", "支付中"),
        SUCCESS("支付成功", "已预定"),
        FAIL("支付错误", "支付失败"),
        CANCEL("未支付时取消", "已取消"),
        REFUND("已支付取消", "已退款"),
        TIME_OUT("超时", "已过期"),
        NOT_EXISTS("不存在", "不存在"),

        ;

        private String desc;
        private String view;
    }

    @AllArgsConstructor
    @Getter
    public enum PayType {
        /**
         * 支付类型
         */
        SCENE_ORDER_TICK("景点订票", "订票"),
        HOTEL_ORDER_ROOM("酒店预定房间", "订房"),
        ;

        private String view;
        private String desc;
    }

}
